package com.daisuxia.risk.service;

import java.util.HashMap;
import java.util.Map;

import net.sf.json.JSONObject;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSON;
import com.daisuxia.back.utils.ServiceResult;
import com.daisuxia.back.utils.SysCacheUtils;
import com.daisuxia.back.utils.WebClient;
import com.daisuxia.risk.pojo.RiskOrders;
import com.daisuxia.risk.utils.ConstantRisk;
import com.daisuxia.web.pojo.BackConfigParams;
import com.daisuxia.web.util.OrderNoUtil;

/**
 * 
 * 类描述：芝麻信用相关接口 <br>
 * 每次发出请求之前插入订单信息，返回后更新订单信息<br>
 * 此类不做任何业务处理，仅拼接参数请求第三方，必须使用trycath，并且不向上抛出异常以保证插入或更新的订单不会回滚<br>
 * 创建人：fanyinchuan<br>
 * 创建时间：2016-12-12 下午03:41:28 <br>
 * 
 * @version
 * 
 */
@Service
public class MxService implements IMxService {
	Logger logger = LoggerFactory.getLogger(getClass());
	@Autowired
	private IRiskOrdersService riskOrdersService;

	@Override
	public ServiceResult getToken(HashMap<String, Object> params) {
		ServiceResult serviceResult = new ServiceResult("500", "未知异常，请稍后重试！");
		String result = "";
		 
		return serviceResult;
	}


	/**
	 * 提交验证码<br>
	 * code为200时，msg是聚信立信息；<br>
	 * 提交验证码请求，则开始采集数据
	 * 
	 * @param request
	 * @param response
	 * @param model
	 */
	@Override
	public ServiceResult applyCollect(HashMap<String, Object> params) {
		ServiceResult serviceResult = new ServiceResult("500", "未知异常，请稍后重试！");
		return serviceResult;
	}

	/**
	 * 查询报告
	 */
	@Override
	public ServiceResult findUserReport(HashMap<String, Object> params) {
		ServiceResult serviceResult = new ServiceResult("500", "未知异常，请稍后重试！");
		String result = "";
		return serviceResult;
	}

	@Override
	public ServiceResult createJxl(HashMap<String, Object> params) {
		// TODO Auto-generated method stub
		return null;
	}

}